#!/bin/bash

echo "-------------初始化文件目录---------------"
mkdir -p /data/myapp/logs/
mkdir -p /data/myapp/files/user/
mkdir -p /data/myapp/files/group/
mkdir -p /data/myapp/files/book/
mkdir -p /data/myapp/files/feedback/
mkdir -p /data/myapp/files/global/
mkdir -p /data/myapp/files/dish/
mkdir -p /data/myapp/files/talkRecord/result/
cd /data/myapp
echo "-------------拉代码---------------"
git clone https://gitee.com/wangfuhshun/my-app-backend.git
echo "-------------初始化文件---------------"
cp /data/myapp/my-app-backend/src/main/resources/header.png /data/myapp/files/talkRecord
cp /data/myapp/my-app-backend/src/main/resources/other_content_pre.png /data/myapp/files/talkRecord
cp /data/myapp/my-app-backend/src/main/resources/my_content_pre.png /data/myapp/files/talkRecord
cp /data/myapp/my-app-backend/src/main/resources/start_back.sh /data/myapp/start_back.sh
# 部署服务
sh start_back.sh
